package com.hdu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdu.entity.Exam;
import com.hdu.pojo.*;

import java.util.List;

/**
 * <p>
 * 考试实体类 服务类
 * </p>
 *
 * @author xiaobai
 * @since 2025-02-06
 */
public interface IExamService extends IService<Exam> {
    List<Exam> listExam(String grade, String label, String start, String end, String name);

    Exam detailExam(String id);

    PageBean<Score> page(Integer page, Integer pageSize, String id, String name, String prop, String order, String cID, String mID);

    List<String> listClass(String id);

    List<Rank> classGrade(String sID, String cID, String mID, String subject);

    List<List<Rank>> requireFollow(String cID, String mID, String subject);

    List<Rank> containGrade(String sID, String cID, String mID, String[] subject);

    List<Table> classTable(String cID, String mID, String subject);

    List<Table> subjectTable(String subject, String mID);

    List<String[]> averageGrade(String cID, String mID);


    Double[] gradeScore(String mID, String subject);

    List<DataCell> listHistogram(String subject, String cID, String mID);

    List<Rank> listLabel(String subject, String cID, String mID, String score);
}
